package cli

import (
	"blockchain.com/part_5/wallet"
	"log"
	"fmt"
)

func (cli *CLI)ListAddresses()  {
	wallets,err := wallet.NewWallets()
	if err != nil {
		log.Panic(err)
	}

	addresses := wallets.GetAddresses()
	for _,address := range addresses {
		fmt.Println(address)
	}
}
